package com.qianfeng.xinyihezi.xinyihezi.activity;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.webkit.WebView;
import android.widget.Toast;

import com.qianfeng.xinyihezi.xinyihezi.R;
import com.qianfeng.xinyihezi.xinyihezi.model.GoodsData;

public class DetailActivity extends AppCompatActivity {
    private String TAG = getClass().getSimpleName();
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_detail);
        Intent intent = this.getIntent();
        GoodsData goodsData = (GoodsData) intent.getSerializableExtra("goodsData");
        Toast.makeText(this, "" + goodsData.getShare_url() + goodsData.getLike_count() + "\t\t\t" + goodsData.getP_price() + "\t\t\t" + goodsData.getFreight() + "\t\t\t" + goodsData.getGoods_id() + "\t\t\t" + goodsData.getLogo_image() + "\t\t\t" + goodsData.getStore_name(), Toast.LENGTH_SHORT).show();
    }
}
